package com.ruoyi.message.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 信息发布管理对象 message
 * 
 * @author ruoyi
 * @date 2023-04-11
 */
public class Message extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 信息的id */
    private Long id;

    /** 发布者 */
    @Excel(name = "发布者",readConverterExp = "1=admin")
    private Long userId;

    /** 标题标签 */
    @Excel(name = "标题标签")
    private String title;

    /** 内容 */
    @Excel(name = "内容")
    private String content;

    /** 0显示1隐藏 */
    @Excel(name = "0显示1隐藏")
    private Integer messageState;

    /** 0未发布1发布 */
    @Excel(name = "0未发布1发布")
    private Integer fabu;

    private String nickName;

    public Message(Long id, Long userId, String title, String content, Integer messageState, Integer fabu, String nickName) {
        this.id = id;
        this.userId = userId;
        this.title = title;
        this.content = content;
        this.messageState = messageState;
        this.fabu = fabu;
        this.nickName = nickName;
    }

    public Message() {
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }
    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }
    public void setMessageState(Integer messageState) 
    {
        this.messageState = messageState;
    }

    public Integer getMessageState() 
    {
        return messageState;
    }
    public void setFabu(Integer fabu) 
    {
        this.fabu = fabu;
    }

    public Integer getFabu() 
    {
        return fabu;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("title", getTitle())
            .append("content", getContent())
            .append("messageState", getMessageState())
            .append("fabu", getFabu())
            .toString();
    }
}
